package com.zhiyou.app.shop.manager.dao;

import java.util.List;

import com.zhiyou.app.shop.manager.dao.pojo.ShoppingTrolley;

public interface IShoppingTrolleyDao extends IBaseDAO<ShoppingTrolley, String> {
	List<ShoppingTrolley> findByCriteria(ShoppingTrolley trolley);
	
	List<ShoppingTrolley> findTrolleyDetailByUserId(String userId);

	/**
	 * 根据订单id和用户id
	 * 删除购物车记录
	 * @param orderId
	 */
	void deleteByOrderId(String orderId, String userId);
}
